package com.world.cat.dao.back;

import com.world.cat.enums.CategoryType;
import com.world.core.dao.GenericRepository;
import com.world.cat.model.back.Category;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

@Repository
public interface CategoryDao extends GenericRepository<Category, String> {
    List<Category> findByCategoryType(CategoryType categoryType);
    List<Category> findByIdIn(Collection<String> categoryIds);
}
